#include "head.h"


void start_work(int netFD){

    //该线程为客户端服务，直到对方断开
    while(1){
        sendc_t sc;
        bzero(&sc, sizeof(sc));
        strcpy(sc.path, "/home/xia/shared/WD/item1_netdisk/user/");
        //接收命令
        int num = recv_command(&sc, netFD);
        if(num == 0){
            break;
        }
        //处理处理命令
        handle_command(netFD, sc);
    }

    close(netFD);
}
